<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>设计管理 - 一体化作战平台</title>
    <!-- 引入Tailwind CSS -->
    <script src="https://cdn.tailwindcss.com"></script>
    <!-- 引入Font Awesome -->
    <link href="https://cdn.jsdelivr.net/npm/font-awesome@4.7.0/css/font-awesome.min.css" rel="stylesheet">
    <!-- 引入Chart.js -->
    <script src="https://cdn.jsdelivr.net/npm/chart.js@4.4.8/dist/chart.umd.min.js"></script>
    
    <!-- Tailwind配置 -->
    <script>
        tailwind.config = {
            theme: {
                extend: {
                    colors: {
                        primary: '#0066cc',
                        secondary: '#0099cc',
                        success: '#009966',
                        warning: '#ff9900',
                        danger: '#cc3300',
                        neutral: {
                            100: '#f5f7fa',
                            200: '#e4e7ed',
                            300: '#c0c4cc',
                            400: '#909399',
                            500: '#606266',
                            600: '#303133',
                            700: '#1f2937',
                        }
                    },
                    fontFamily: {
                        sans: ['Inter', 'system-ui', 'sans-serif'],
                    },
                    boxShadow: {
                        'card': '0 2px 8px rgba(0, 0, 0, 0.08)',
                        'dropdown': '0 4px 16px rgba(0, 0, 0, 0.12)',
                    }
                },
            }
        }
    </script>
    
    <!-- 自定义工具类 -->
    <style type="text/tailwindcss">
        @layer utilities {
            .content-auto {
                content-visibility: auto;
            }
            .scrollbar-hide {
                -ms-overflow-style: none;
                scrollbar-width: none;
            }
            .scrollbar-hide::-webkit-scrollbar {
                display: none;
            }
            .text-shadow {
                text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
            }
            .transition-all-300 {
                transition: all 300ms ease-in-out;
            }
        }
    </style>
</head>
<body class="bg-neutral-100 font-sans text-neutral-600 min-h-screen flex flex-col">
    <!-- 顶部导航栏 -->
    <header class="bg-white shadow-sm fixed top-0 left-0 right-0 z-50">
        <div class="flex items-center justify-between px-4 py-3">
            <!-- Logo和标题 -->
            <div class="flex items-center space-x-3">
                <div class="w-10 h-10 bg-primary rounded-md flex items-center justify-center text-white">
                    <i class="fa fa-bank text-xl"></i>
                </div>
                <h1 class="text-xl font-bold text-neutral-700 hidden md:block">一体化作战平台</h1>
                <h1 class="text-lg font-bold text-neutral-700 md:hidden">研发交付平台</h1>
            </div>
            
            <!-- 搜索框 -->
            <div class="hidden md:flex relative flex-1 max-w-md mx-4">
                <input type="text" placeholder="搜索设计项..." 
                    class="w-full pl-10 pr-4 py-2 rounded-md border border-neutral-200 focus:outline-none focus:ring-2 focus:ring-primary/30 focus:border-primary">
                <i class="fa fa-search absolute left-3 top-1/2 transform -translate-y-1/2 text-neutral-400"></i>
            </div>
            
            <!-- 右侧用户区域 -->
            <div class="flex items-center space-x-1 md:space-x-4">
                <!-- 通知按钮 -->
                <button class="relative p-2 rounded-full hover:bg-neutral-100 transition-all-300">
                    <i class="fa fa-bell-o text-lg text-neutral-600"></i>
                    <span class="absolute top-0 right-0 w-2 h-2 bg-danger rounded-full"></span>
                </button>
                
                <!-- 消息按钮 -->
                <button class="relative p-2 rounded-full hover:bg-neutral-100 transition-all-300 hidden md:block">
                    <i class="fa fa-envelope-o text-lg text-neutral-600"></i>
                    <span class="absolute top-0 right-0 w-2 h-2 bg-primary rounded-full"></span>
                </button>
                
                <!-- 用户头像 -->
                <div class="flex items-center space-x-2 ml-2">
                    <div class="w-8 h-8 bg-neutral-200 rounded-full overflow-hidden">
                        <img src="https://picsum.photos/id/1005/200/200" alt="用户头像" class="w-full h-full object-cover">
                    </div>
                    <span class="hidden md:block text-sm font-medium text-neutral-700">张三</span>
                </div>
            </div>
        </div>
    </header>

    <!-- 主体内容 -->
    <div class="flex pt-16 flex-1">
        <!-- 左侧导航菜单 -->
        <aside class="w-16 md:w-64 bg-white shadow-sm fixed h-full left-0 top-16 overflow-y-auto scrollbar-hide transform md:transform-none transition-transform duration-300 z-40 -translate-x-full md:translate-x-0">
            <nav class="py-4">
                <ul>
                    <!-- 主导航项 -->
                    <li class="mb-1">
                        <a href="index.html" class="flex items-center space-x-3 px-4 py-3 text-neutral-600 hover:bg-neutral-50 transition-all-300">
                            <i class="fa fa-tachometer text-lg"></i>
                            <span class="hidden md:block">首页</span>
                        </a>
                    </li>
                    
                    <!-- 交付流程模块 -->
                    <li class="mb-1">
                        <a href="business_strategy.html" class="flex items-center space-x-3 px-4 py-3 text-neutral-600 hover:bg-neutral-50 transition-all-300">
                            <i class="fa fa-line-chart text-lg"></i>
                            <span class="hidden md:block">业务战略</span>
                        </a>
                    </li>
                    
                    <li class="mb-1">
                        <a href="architecture-management.html" class="flex items-center space-x-3 px-4 py-3 text-neutral-600 hover:bg-neutral-50 transition-all-300">
                            <i class="fa fa-sitemap text-lg"></i>
                            <span class="hidden md:block">架构管理</span>
                        </a>
                    </li>
                    
                    <li class="mb-1">
                        <a href="requirementsManagement.html" class="flex items-center space-x-3 px-4 py-3 text-neutral-600 hover:bg-neutral-50 transition-all-300">
                            <i class="fa fa-list-alt text-lg"></i>
                            <span class="hidden md:block">需求管理</span>
                        </a>
                    </li>
                    
                    <li class="mb-1">
                        <div class="design-menu-wrapper">
                            <div class="flex items-center justify-between px-4 py-3 text-primary bg-primary/5 border-r-4 border-primary">
                                <a href="design_management.html" class="flex items-center space-x-3 flex-1" onclick="event.stopPropagation();">
                                    <i class="fa fa-paint-brush text-lg"></i>
                                    <span class="hidden md:block font-medium">设计管理</span>
                                </a>
                                <button id="design-menu-toggle" class="hidden md:block p-1 hover:bg-neutral-200 rounded transition-all" aria-label="展开/收起子菜单" onclick="event.stopPropagation();">
                                    <i class="fa fa-chevron-right text-xs transform transition-transform duration-300"></i>
                                </button>
                            </div>
                            <!-- 下拉子菜单 -->
                            <div id="design-submenu" class="hidden overflow-hidden transition-all duration-300 ease-in-out">
                                <div class="bg-neutral-50 py-1">
                                    <a href="interface_management.html" class="flex items-center space-x-3 px-4 py-2 pl-12 text-neutral-600 hover:bg-primary/5 hover:text-primary transition-all text-sm">
                                        <i class="fa fa-plug text-sm"></i>
                                        <span class="hidden md:block">接口管理</span>
                                    </a>
                                    <a href="model_management.html" class="flex items-center space-x-3 px-4 py-2 pl-12 text-neutral-600 hover:bg-primary/5 hover:text-primary transition-all text-sm">
                                        <i class="fa fa-cubes text-sm"></i>
                                        <span class="hidden md:block">模型管理</span>
                                    </a>
                                    <a href="data_management.html" class="flex items-center space-x-3 px-4 py-2 pl-12 text-neutral-600 hover:bg-primary/5 hover:text-primary transition-all text-sm">
                                        <i class="fa fa-database text-sm"></i>
                                        <span class="hidden md:block">字典管理</span>
                                    </a>
                                    <a href="ui_management.html" class="flex items-center space-x-3 px-4 py-2 pl-12 text-neutral-600 hover:bg-primary/5 hover:text-primary transition-all text-sm">
                                        <i class="fa fa-desktop text-sm"></i>
                                        <span class="hidden md:block">差异分析</span>
                                    </a>
                                </div>
                            </div>
                        </div>
                    </li>
                    
                    <li class="mb-1">
                        <a href="schedule_management.html" class="flex items-center space-x-3 px-4 py-3 text-neutral-600 hover:bg-neutral-50 transition-all-300">
                            <i class="fa fa-calendar text-lg"></i>
                            <span class="hidden md:block">排期管理</span>
                        </a>
                    </li>
                    
                    <li class="mb-1">
                        <a href="developmentMage.html" class="flex items-center space-x-3 px-4 py-3 text-neutral-600 hover:bg-neutral-50 transition-all-300">
                            <i class="fa fa-code text-lg"></i>
                            <span class="hidden md:block">开发管理</span>
                        </a>
                    </li>
                    
                    <li class="mb-1">
                        <div class="test-menu-wrapper">
                            <div class="flex items-center justify-between px-4 py-3 text-neutral-600 hover:bg-neutral-50 transition-all-300">
                                <a href="testManagement.html" class="flex items-center space-x-3 flex-1" onclick="event.stopPropagation();">
                                    <i class="fa fa-bug text-lg"></i>
                                    <span class="hidden md:block">测试管理</span>
                                </a>
                                <button id="test-menu-toggle" class="hidden md:block p-1 hover:bg-neutral-200 rounded transition-all" aria-label="展开/收起子菜单" onclick="event.stopPropagation();">
                                    <i class="fa fa-chevron-right text-xs transform transition-transform duration-300"></i>
                                </button>
                            </div>
                            <!-- 下拉子菜单 -->
                            <div id="test-submenu" class="hidden overflow-hidden transition-all duration-300 ease-in-out">
                                <div class="bg-neutral-50 py-1">
                                    <a href="test_cases.html" class="flex items-center space-x-3 px-4 py-2 pl-12 text-neutral-600 hover:bg-primary/5 hover:text-primary transition-all text-sm">
                                        <i class="fa fa-file-text-o text-sm"></i>
                                        <span class="hidden md:block">测试案例</span>
                                    </a>
                                    <a href="test_plans.html" class="flex items-center space-x-3 px-4 py-2 pl-12 text-neutral-600 hover:bg-primary/5 hover:text-primary transition-all text-sm">
                                        <i class="fa fa-calendar-check-o text-sm"></i>
                                        <span class="hidden md:block">测试计划</span>
                                    </a>
                                    <a href="test_reports.html" class="flex items-center space-x-3 px-4 py-2 pl-12 text-neutral-600 hover:bg-primary/5 hover:text-primary transition-all text-sm">
                                        <i class="fa fa-bar-chart text-sm"></i>
                                        <span class="hidden md:block">测试报告</span>
                                    </a>
                                    <a href="test_global_settings.html" class="flex items-center space-x-3 px-4 py-2 pl-12 text-neutral-600 hover:bg-primary/5 hover:text-primary transition-all text-sm">
                                        <i class="fa fa-cogs text-sm"></i>
                                        <span class="hidden md:block">全局设置</span>
                                    </a>
                                </div>
                            </div>
                        </div>
                    </li>
                    
                    <li class="mb-1">
                        <a href="production_workflow.html" class="flex items-center space-x-3 px-4 py-3 text-neutral-600 hover:bg-neutral-50 transition-all-300">
                            <i class="fa fa-rocket text-lg"></i>
                            <span class="hidden md:block">投产上线</span>
                        </a>
                    </li>
                    
                    <!-- 新增的三个子菜单项 -->
                    <li class="mb-1">
                        <a href="quality_management.html" class="flex items-center space-x-3 px-4 py-3 text-neutral-600 hover:bg-neutral-50 transition-all-300">
                            <i class="fa fa-check-circle text-lg"></i>
                            <span class="hidden md:block">质量管理</span>
                        </a>
                    </li>
                    
                    <li class="mb-1">
                        <a href="security_management.html" class="flex items-center space-x-3 px-4 py-3 text-neutral-600 hover:bg-neutral-50 transition-all-300">
                            <i class="fa fa-shield text-lg"></i>
                            <span class="hidden md:block">安全管理</span>
                        </a>
                    </li>
                    
                    <li class="mb-1">
                        <a href="efficiency_metrics.html" class="flex items-center space-x-3 px-4 py-3 text-neutral-600 hover:bg-neutral-50 transition-all-300">
                            <i class="fa fa-bar-chart text-lg"></i>
                            <span class="hidden md:block">效能度量</span>
                        </a>
                    </li>
                    
                    <!-- 分隔线 -->
                    <li class="my-2">
                        <div class="border-t border-neutral-200 mx-4"></div>
                    </li>
                    
                    <!-- 公共模块 -->
                    <li class="mb-1">
                        <a href="teamManagement.html" class="flex items-center space-x-3 px-4 py-3 text-neutral-600 hover:bg-neutral-50 transition-all-300">
                            <i class="fa fa-users text-lg"></i>
                            <span class="hidden md:block">团队管理</span>
                        </a>
                    </li>
                    
                    <li class="mb-1">
                        <a href="settings.html" class="flex items-center space-x-3 px-4 py-3 text-neutral-600 hover:bg-neutral-50 transition-all-300">
                            <i class="fa fa-cog text-lg"></i>
                            <span class="hidden md:block">设置</span>
                        </a>
                    </li>
                </ul>
            </nav>
        </aside>

        <!-- 主内容区域 -->
        <main class="flex-1 ml-16 md:ml-64 p-4 md:p-6 bg-neutral-100 min-h-screen">
            <!-- 设计管理内容 -->
            <div id="design-management-content">
                <div class="flex justify-between items-center mb-6">
                    <div>
                        <h1 class="text-xl font-bold text-neutral-800">设计管理</h1>
                        <div class="text-sm text-neutral-500 mt-1">
                            <span>首页</span> &gt; <span>设计管理</span>
                        </div>
                    </div>
                    <!-- 操作按钮组 -->
                    <div class="flex space-x-3">
                        <button class="bg-white border border-neutral-200 rounded-md px-3 py-2 text-sm font-medium text-neutral-700 hover:bg-neutral-50 transition-all-300">
                            <i class="fa fa-upload mr-1"></i> 导入
                        </button>
                        <button class="bg-primary text-white rounded-md px-3 py-2 text-sm font-medium hover:bg-primary/90 transition-all-300">
                            <i class="fa fa-plus mr-1"></i> 新建
                        </button>
                    </div>
                </div>

                <!-- 系统空间管理 -->
                <div class="bg-white rounded-lg shadow-card p-4 mb-6">
                    <div class="flex justify-between items-center mb-4">
                        <h2 class="text-lg font-semibold text-neutral-700">系统空间管理</h2>
                        <div class="flex space-x-2">
                            <button class="text-sm text-neutral-600 hover:text-primary">
                                <i class="fa fa-filter mr-1"></i> 筛选
                            </button>
                            <button class="text-sm text-neutral-600 hover:text-primary">
                                <i class="fa fa-sort mr-1"></i> 排序
                            </button>
                        </div>
                    </div>

                    <!-- 系统空间列表 -->
                    <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4">
                        <!-- 系统空间卡片 -->
                        <div class="bg-white rounded-lg shadow-sm p-4 border border-neutral-200 cursor-pointer hover:shadow-md transition-all-300 system-space-card" data-system-id="sys-001">
                            <div class="flex items-center justify-between mb-3">
                                <div class="flex items-center space-x-2">
                                    <div class="w-10 h-10 bg-primary/10 rounded-md flex items-center justify-center text-primary">
                                        <i class="fa fa-building text-xl"></i>
                                    </div>
                                    <h3 class="font-medium text-neutral-700">核心银行系统</h3>
                                </div>
                                <span class="text-xs px-2 py-1 bg-primary/10 text-primary rounded-full">活跃</span>
                            </div>
                            <p class="text-sm text-neutral-500 mb-3">提供核心银行账户、交易等基础功能</p>
                            <div class="flex items-center justify-between">
                                <div class="flex items-center space-x-3">
                                    <span class="text-xs text-neutral-500 flex items-center">
                                        <i class="fa fa-plug mr-1 text-neutral-400"></i> 48个接口
                                    </span>
                                    <span class="text-xs text-neutral-500 flex items-center">
                                        <i class="fa fa-database mr-1 text-neutral-400"></i> 24个模型
                                    </span>
                                </div>
                                <button class="text-primary text-xs hover:underline">详情</button>
                            </div>
                        </div>

                        <div class="bg-white rounded-lg shadow-sm p-4 border border-neutral-200 cursor-pointer hover:shadow-md transition-all-300 system-space-card" data-system-id="sys-002">
                            <div class="flex items-center justify-between mb-3">
                                <div class="flex items-center space-x-2">
                                    <div class="w-10 h-10 bg-secondary/10 rounded-md flex items-center justify-center text-secondary">
                                        <i class="fa fa-credit-card text-xl"></i>
                                    </div>
                                    <h3 class="font-medium text-neutral-700">信用卡系统</h3>
                                </div>
                                <span class="text-xs px-2 py-1 bg-primary/10 text-primary rounded-full">活跃</span>
                            </div>
                            <p class="text-sm text-neutral-500 mb-3">提供信用卡业务全流程管理</p>
                            <div class="flex items-center justify-between">
                                <div class="flex items-center space-x-3">
                                    <span class="text-xs text-neutral-500 flex items-center">
                                        <i class="fa fa-plug mr-1 text-neutral-400"></i> 36个接口
                                    </span>
                                    <span class="text-xs text-neutral-500 flex items-center">
                                        <i class="fa fa-database mr-1 text-neutral-400"></i> 18个模型
                                    </span>
                                </div>
                                <button class="text-primary text-xs hover:underline">详情</button>
                            </div>
                        </div>

                        <div class="bg-white rounded-lg shadow-sm p-4 border border-neutral-200 cursor-pointer hover:shadow-md transition-all-300 system-space-card" data-system-id="sys-003">
                            <div class="flex items-center justify-between mb-3">
                                <div class="flex items-center space-x-2">
                                    <div class="w-10 h-10 bg-success/10 rounded-md flex items-center justify-center text-success">
                                        <i class="fa fa-laptop text-xl"></i>
                                    </div>
                                    <h3 class="font-medium text-neutral-700">网上银行系统</h3>
                                </div>
                                <span class="text-xs px-2 py-1 bg-primary/10 text-primary rounded-full">活跃</span>
                            </div>
                            <p class="text-sm text-neutral-500 mb-3">提供在线银行服务平台</p>
                            <div class="flex items-center justify-between">
                                <div class="flex items-center space-x-3">
                                    <span class="text-xs text-neutral-500 flex items-center">
                                        <i class="fa fa-plug mr-1 text-neutral-400"></i> 52个接口
                                    </span>
                                    <span class="text-xs text-neutral-500 flex items-center">
                                        <i class="fa fa-database mr-1 text-neutral-400"></i> 26个模型
                                    </span>
                                </div>
                                <button class="text-primary text-xs hover:underline">详情</button>
                            </div>
                        </div>

                        <div class="bg-white rounded-lg shadow-sm p-4 border border-neutral-200 cursor-pointer hover:shadow-md transition-all-300 system-space-card" data-system-id="sys-004">
                            <div class="flex items-center justify-between mb-3">
                                <div class="flex items-center space-x-2">
                                    <div class="w-10 h-10 bg-warning/10 rounded-md flex items-center justify-center text-warning">
                                        <i class="fa fa-mobile text-xl"></i>
                                    </div>
                                    <h3 class="font-medium text-neutral-700">手机银行系统</h3>
                                </div>
                                <span class="text-xs px-2 py-1 bg-primary/10 text-primary rounded-full">活跃</span>
                            </div>
                            <p class="text-sm text-neutral-500 mb-3">提供移动银行服务平台</p>
                            <div class="flex items-center justify-between">
                                <div class="flex items-center space-x-3">
                                    <span class="text-xs text-neutral-500 flex items-center">
                                        <i class="fa fa-plug mr-1 text-neutral-400"></i> 45个接口
                                    </span>
                                    <span class="text-xs text-neutral-500 flex items-center">
                                        <i class="fa fa-database mr-1 text-neutral-400"></i> 22个模型
                                    </span>
                                </div>
                                <button class="text-primary text-xs hover:underline">详情</button>
                            </div>
                        </div>

                        <div class="bg-white rounded-lg shadow-sm p-4 border border-neutral-200 cursor-pointer hover:shadow-md transition-all-300 system-space-card" data-system-id="sys-005">
                            <div class="flex items-center justify-between mb-3">
                                <div class="flex items-center space-x-2">
                                    <div class="w-10 h-10 bg-danger/10 rounded-md flex items-center justify-center text-danger">
                                        <i class="fa fa-exchange text-xl"></i>
                                    </div>
                                    <h3 class="font-medium text-neutral-700">支付系统</h3>
                                </div>
                                <span class="text-xs px-2 py-1 bg-warning/10 text-warning rounded-full">待优化</span>
                            </div>
                            <p class="text-sm text-neutral-500 mb-3">提供各类支付交易处理</p>
                            <div class="flex items-center justify-between">
                                <div class="flex items-center space-x-3">
                                    <span class="text-xs text-neutral-500 flex items-center">
                                        <i class="fa fa-plug mr-1 text-neutral-400"></i> 38个接口
                                    </span>
                                    <span class="text-xs text-neutral-500 flex items-center">
                                        <i class="fa fa-database mr-1 text-neutral-400"></i> 19个模型
                                    </span>
                                </div>
                                <button class="text-primary text-xs hover:underline">详情</button>
                            </div>
                        </div>

                        <div class="bg-white rounded-lg shadow-sm p-4 border border-neutral-200 cursor-pointer hover:shadow-md transition-all-300 system-space-card" data-system-id="sys-006">
                            <div class="flex items-center justify-between mb-3">
                                <div class="flex items-center space-x-2">
                                    <div class="w-10 h-10 bg-primary/10 rounded-md flex items-center justify-center text-primary">
                                        <i class="fa fa-shield text-xl"></i>
                                    </div>
                                    <h3 class="font-medium text-neutral-700">风控系统</h3>
                                </div>
                                <span class="text-xs px-2 py-1 bg-success/10 text-success rounded-full">优化中</span>
                            </div>
                            <p class="text-sm text-neutral-500 mb-3">提供风险管理与控制功能</p>
                            <div class="flex items-center justify-between">
                                <div class="flex items-center space-x-3">
                                    <span class="text-xs text-neutral-500 flex items-center">
                                        <i class="fa fa-plug mr-1 text-neutral-400"></i> 32个接口
                                    </span>
                                    <span class="text-xs text-neutral-500 flex items-center">
                                        <i class="fa fa-database mr-1 text-neutral-400"></i> 16个模型
                                    </span>
                                </div>
                                <button class="text-primary text-xs hover:underline">详情</button>
                            </div>
                        </div>
                    </div>
                </div>

                <!-- 系统空间详情区域 (默认隐藏) -->
                <div id="system-space-detail" class="hidden">
                    <!-- 系统空间头部信息 -->
                    <div class="bg-white rounded-lg shadow-card p-4 mb-6">
                        <div class="flex items-center space-x-2 mb-2">
                            <button id="back-to-system-list" class="text-neutral-500 hover:text-primary">
                                <i class="fa fa-arrow-left"></i>
                            </button>
                            <h2 class="text-lg font-semibold text-neutral-700"><span id="system-detail-name">核心银行系统</span> - 详情</h2>
                        </div>
                        <div class="text-sm text-neutral-500">
                            系统ID: <span id="system-detail-id">sys-001</span> | 状态: <span id="system-detail-status" class="text-primary">活跃</span>
                        </div>
                    </div>

                    <!-- 系统空间二级导航 -->
                    <div class="bg-white rounded-lg shadow-card p-4 mb-6">
                        <div class="flex flex-wrap gap-1">
                            <button id="interface-management-btn" class="whitespace-nowrap px-4 py-2 rounded-md bg-primary text-white font-medium flex items-center transition-all-300">
                                <i class="fa fa-plug mr-2"></i> 接口管理
                            </button>
                            <button id="model-management-btn" class="whitespace-nowrap px-4 py-2 rounded-md bg-white text-neutral-700 border border-neutral-200 font-medium flex items-center hover:bg-neutral-50 transition-all-300">
                                <i class="fa fa-database mr-2"></i> 模型管理
                            </button>
                        </div>
                    </div>

                    <!-- 接口管理内容 -->
                    <div id="interface-management-content" class="system-detail-content">
                        <div class="bg-white rounded-lg shadow-card p-4 mb-6">
                            <div class="flex justify-between items-center mb-4">
                                <h3 class="text-lg font-semibold text-neutral-700">接口列表</h3>
                                <div class="flex space-x-2">
                                    <button class="text-sm text-neutral-600 hover:text-primary">
                                        <i class="fa fa-filter mr-1"></i> 筛选
                                    </button>
                                    <button class="text-sm text-neutral-600 hover:text-primary">
                                        <i class="fa fa-sort mr-1"></i> 排序
                                    </button>
                                    <button class="text-primary text-sm hover:underline">
                                        <i class="fa fa-plus mr-1"></i> 新建接口
                                    </button>
                                </div>
                            </div>

                            <div class="overflow-x-auto">
                                <table class="min-w-full divide-y divide-neutral-200">
                                    <thead class="bg-neutral-50">
                                        <tr>
                                            <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-neutral-500 uppercase tracking-wider">
                                                接口名称
                                            </th>
                                            <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-neutral-500 uppercase tracking-wider">
                                                接口类型
                                            </th>
                                            <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-neutral-500 uppercase tracking-wider">
                                                请求方法
                                            </th>
                                            <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-neutral-500 uppercase tracking-wider">
                                                路径
                                            </th>
                                            <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-neutral-500 uppercase tracking-wider">
                                                状态
                                            </th>
                                            <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-neutral-500 uppercase tracking-wider">
                                                更新时间
                                            </th>
                                            <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-neutral-500 uppercase tracking-wider">
                                                操作
                                            </th>
                                        </tr>
                                    </thead>
                                    <tbody class="bg-white divide-y divide-neutral-200">
                                        <tr>
                                            <td class="px-6 py-4 whitespace-nowrap">
                                                <div class="text-sm font-medium text-neutral-700">获取账户信息</div>
                                            </td>
                                            <td class="px-6 py-4 whitespace-nowrap">
                                                <span class="px-2 py-1 text-xs font-medium bg-primary/10 text-primary rounded-full">REST</span>
                                            </td>
                                            <td class="px-6 py-4 whitespace-nowrap text-sm text-neutral-600">GET</td>
                                            <td class="px-6 py-4 whitespace-nowrap text-sm text-neutral-600">/api/v1/accounts/{id}</td>
                                            <td class="px-6 py-4 whitespace-nowrap">
                                                <span class="px-2 py-1 text-xs font-medium bg-success/10 text-success rounded-full">已发布</span>
                                            </td>
                                            <td class="px-6 py-4 whitespace-nowrap text-sm text-neutral-600">2023-06-15 14:30</td>
                                            <td class="px-6 py-4 whitespace-nowrap text-sm text-neutral-600">
                                                <button class="text-primary hover:text-primary/80 mr-2">编辑</button>
                                                <button class="text-neutral-500 hover:text-neutral-700 mr-2">详情</button>
                                                <button class="text-danger hover:text-danger/80">删除</button>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="px-6 py-4 whitespace-nowrap">
                                                <div class="text-sm font-medium text-neutral-700">创建账户</div>
                                            </td>
                                            <td class="px-6 py-4 whitespace-nowrap">
                                                <span class="px-2 py-1 text-xs font-medium bg-primary/10 text-primary rounded-full">REST</span>
                                            </td>
                                            <td class="px-6 py-4 whitespace-nowrap text-sm text-neutral-600">POST</td>
                                            <td class="px-6 py-4 whitespace-nowrap text-sm text-neutral-600">/api/v1/accounts</td>
                                            <td class="px-6 py-4 whitespace-nowrap">
                                                <span class="px-2 py-1 text-xs font-medium bg-success/10 text-success rounded-full">已发布</span>
                                            </td>
                                            <td class="px-6 py-4 whitespace-nowrap text-sm text-neutral-600">2023-06-10 09:15</td>
                                            <td class="px-6 py-4 whitespace-nowrap text-sm text-neutral-600">
                                                <button class="text-primary hover:text-primary/80 mr-2">编辑</button>
                                                <button class="text-neutral-500 hover:text-neutral-700 mr-2">详情</button>
                                                <button class="text-danger hover:text-danger/80">删除</button>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="px-6 py-4 whitespace-nowrap">
                                                <div class="text-sm font-medium text-neutral-700">更新账户信息</div>
                                            </td>
                                            <td class="px-6 py-4 whitespace-nowrap">
                                                <span class="px-2 py-1 text-xs font-medium bg-primary/10 text-primary rounded-full">REST</span>
                                            </td>
                                            <td class="px-6 py-4 whitespace-nowrap text-sm text-neutral-600">PUT</td>
                                            <td class="px-6 py-4 whitespace-nowrap text-sm text-neutral-600">/api/v1/accounts/{id}</td>
                                            <td class="px-6 py-4 whitespace-nowrap">
                                                <span class="px-2 py-1 text-xs font-medium bg-warning/10 text-warning rounded-full">开发中</span>
                                            </td>
                                            <td class="px-6 py-4 whitespace-nowrap text-sm text-neutral-600">2023-06-20 11:45</td>
                                            <td class="px-6 py-4 whitespace-nowrap text-sm text-neutral-600">
                                                <button class="text-primary hover:text-primary/80 mr-2">编辑</button>
                                                <button class="text-neutral-500 hover:text-neutral-700 mr-2">详情</button>
                                                <button class="text-danger hover:text-danger/80">删除</button>
                                            </td>
                                        </tr>
                                    </tbody>
                                </table>
                            </div>

                            <!-- 分页 -->
                            <div class="flex justify-between items-center mt-4">
                                <div class="text-sm text-neutral-500">
                                    显示 1-3 条，共 48 条
                                </div>
                                <div class="flex space-x-1">
                                    <button class="px-3 py-1 rounded border border-neutral-200 text-sm text-neutral-600 hover:bg-neutral-50 disabled:opacity-50 disabled:cursor-not-allowed" disabled>
                                        上一页
                                    </button>
                                    <button class="px-3 py-1 rounded border border-primary bg-primary text-sm text-white">1</button>
                                    <button class="px-3 py-1 rounded border border-neutral-200 text-sm text-neutral-600 hover:bg-neutral-50">2</button>
                                    <button class="px-3 py-1 rounded border border-neutral-200 text-sm text-neutral-600 hover:bg-neutral-50">3</button>
                                    <span class="px-3 py-1 text-sm text-neutral-500">...</span>
                                    <button class="px-3 py-1 rounded border border-neutral-200 text-sm text-neutral-600 hover:bg-neutral-50">16</button>
                                    <button class="px-3 py-1 rounded border border-neutral-200 text-sm text-neutral-600 hover:bg-neutral-50">
                                        下一页
                                    </button>
                                </div>
                            </div>
                        </div>
                    </div>

                    <!-- 模型管理内容 (默认隐藏) -->
                    <div id="model-management-content" class="system-detail-content hidden">
                        <div class="bg-white rounded-lg shadow-card p-4 mb-6">
                            <div class="flex justify-between items-center mb-4">
                                <h3 class="text-lg font-semibold text-neutral-700">数据模型列表</h3>
                                <div class="flex space-x-2">
                                    <button class="text-sm text-neutral-600 hover:text-primary">
                                        <i class="fa fa-filter mr-1"></i> 筛选
                                    </button>
                                    <button class="text-sm text-neutral-600 hover:text-primary">
                                        <i class="fa fa-sort mr-1"></i> 排序
                                    </button>
                                    <button class="text-primary text-sm hover:underline">
                                        <i class="fa fa-plus mr-1"></i> 新建模型
                                    </button>
                                </div>
                            </div>

                            <div class="grid grid-cols-1 md:grid-cols-2 gap-4">
                                <!-- 数据模型卡片 -->
                                <div class="bg-white rounded-lg border border-neutral-200 p-4 hover:shadow-md transition-all-300">
                                    <div class="flex justify-between items-center mb-2">
                                        <h4 class="font-medium text-neutral-700">账户模型</h4>
                                        <span class="text-xs px-2 py-1 bg-success/10 text-success rounded-full">已发布</span>
                                    </div>
                                    <p class="text-sm text-neutral-500 mb-3">定义银行账户的基本信息和属性</p>
                                    <div class="flex justify-between items-center text-xs text-neutral-500 mb-3">
                                        <span>实体: Account</span>
                                        <span>更新时间: 2023-06-15</span>
                                    </div>
                                    <div class="border-t border-neutral-100 pt-3">
                                        <div class="flex items-center text-xs text-neutral-500 mb-1">
                                            <i class="fa fa-key mr-1"></i> 关键字段: id, accountNumber, balance, status
                                        </div>
                                        <div class="flex space-x-1 mt-2">
                                            <button class="px-2 py-1 text-xs bg-white border border-neutral-200 text-neutral-600 rounded hover:bg-neutral-50">
                                                查看详情
                                            </button>
                                            <button class="px-2 py-1 text-xs bg-white border border-neutral-200 text-neutral-600 rounded hover:bg-neutral-50">
                                                编辑
                                            </button>
                                        </div>
                                    </div>
                                </div>

                                <div class="bg-white rounded-lg border border-neutral-200 p-4 hover:shadow-md transition-all-300">
                                    <div class="flex justify-between items-center mb-2">
                                        <h4 class="font-medium text-neutral-700">交易模型</h4>
                                        <span class="text-xs px-2 py-1 bg-success/10 text-success rounded-full">已发布</span>
                                    </div>
                                    <p class="text-sm text-neutral-500 mb-3">定义银行交易的基本信息和属性</p>
                                    <div class="flex justify-between items-center text-xs text-neutral-500 mb-3">
                                        <span>实体: Transaction</span>
                                        <span>更新时间: 2023-06-12</span>
                                    </div>
                                    <div class="border-t border-neutral-100 pt-3">
                                        <div class="flex items-center text-xs text-neutral-500 mb-1">
                                            <i class="fa fa-key mr-1"></i> 关键字段: id, fromAccountId, toAccountId, amount, type
                                        </div>
                                        <div class="flex space-x-1 mt-2">
                                            <button class="px-2 py-1 text-xs bg-white border border-neutral-200 text-neutral-600 rounded hover:bg-neutral-50">
                                                查看详情
                                            </button>
                                            <button class="px-2 py-1 text-xs bg-white border border-neutral-200 text-neutral-600 rounded hover:bg-neutral-50">
                                                编辑
                                            </button>
                                        </div>
                                    </div>
                                </div>

                                <div class="bg-white rounded-lg border border-neutral-200 p-4 hover:shadow-md transition-all-300">
                                    <div class="flex justify-between items-center mb-2">
                                        <h4 class="font-medium text-neutral-700">客户模型</h4>
                                        <span class="text-xs px-2 py-1 bg-warning/10 text-warning rounded-full">开发中</span>
                                    </div>
                                    <p class="text-sm text-neutral-500 mb-3">定义银行客户的基本信息和属性</p>
                                    <div class="flex justify-between items-center text-xs text-neutral-500 mb-3">
                                        <span>实体: Customer</span>
                                        <span>更新时间: 2023-06-20</span>
                                    </div>
                                    <div class="border-t border-neutral-100 pt-3">
                                        <div class="flex items-center text-xs text-neutral-500 mb-1">
                                            <i class="fa fa-key mr-1"></i> 关键字段: id, name, idNumber, phone, email
                                        </div>
                                        <div class="flex space-x-1 mt-2">
                                            <button class="px-2 py-1 text-xs bg-white border border-neutral-200 text-neutral-600 rounded hover:bg-neutral-50">
                                                查看详情
                                            </button>
                                            <button class="px-2 py-1 text-xs bg-white border border-neutral-200 text-neutral-600 rounded hover:bg-neutral-50">
                                                编辑
                                            </button>
                                        </div>
                                    </div>
                                </div>

                                <div class="bg-white rounded-lg border border-neutral-200 p-4 hover:shadow-md transition-all-300">
                                    <div class="flex justify-between items-center mb-2">
                                        <h4 class="font-medium text-neutral-700">产品模型</h4>
                                        <span class="text-xs px-2 py-1 bg-success/10 text-success rounded-full">已发布</span>
                                    </div>
                                    <p class="text-sm text-neutral-500 mb-3">定义银行产品的基本信息和属性</p>
                                    <div class="flex justify-between items-center text-xs text-neutral-500 mb-3">
                                        <span>实体: Product</span>
                                        <span>更新时间: 2023-06-05</span>
                                    </div>
                                    <div class="border-t border-neutral-100 pt-3">
                                        <div class="flex items-center text-xs text-neutral-500 mb-1">
                                            <i class="fa fa-key mr-1"></i> 关键字段: id, name, code, type, description
                                        </div>
                                        <div class="flex space-x-1 mt-2">
                                            <button class="px-2 py-1 text-xs bg-white border border-neutral-200 text-neutral-600 rounded hover:bg-neutral-50">
                                                查看详情
                                            </button>
                                            <button class="px-2 py-1 text-xs bg-white border border-neutral-200 text-neutral-600 rounded hover:bg-neutral-50">
                                                编辑
                                            </button>
                                        </div>
                                    </div>
                                </div>
                            </div>

                            <!-- 分页 -->
                            <div class="flex justify-between items-center mt-4">
                                <div class="text-sm text-neutral-500">
                                    显示 1-4 条，共 24 条
                                </div>
                                <div class="flex space-x-1">
                                    <button class="px-3 py-1 rounded border border-neutral-200 text-sm text-neutral-600 hover:bg-neutral-50 disabled:opacity-50 disabled:cursor-not-allowed" disabled>
                                        上一页
                                    </button>
                                    <button class="px-3 py-1 rounded border border-primary bg-primary text-sm text-white">1</button>
                                    <button class="px-3 py-1 rounded border border-neutral-200 text-sm text-neutral-600 hover:bg-neutral-50">2</button>
                                    <button class="px-3 py-1 rounded border border-neutral-200 text-sm text-neutral-600 hover:bg-neutral-50">3</button>
                                    <span class="px-3 py-1 text-sm text-neutral-500">...</span>
                                    <button class="px-3 py-1 rounded border border-neutral-200 text-sm text-neutral-600 hover:bg-neutral-50">6</button>
                                    <button class="px-3 py-1 rounded border border-neutral-200 text-sm text-neutral-600 hover:bg-neutral-50">
                                        下一页
                                    </button>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </main>
    </div>

    <!-- JavaScript -->
    <script>
        document.addEventListener('DOMContentLoaded', function() {
            // 系统空间点击事件
            const systemSpaceCards = document.querySelectorAll('.system-space-card');
            const systemSpaceDetail = document.getElementById('system-space-detail');
            const systemList = document.getElementById('design-management-content').firstElementChild;
            const backToListBtn = document.getElementById('back-to-system-list');
            const systemDetailName = document.getElementById('system-detail-name');
            const systemDetailId = document.getElementById('system-detail-id');
            const systemDetailStatus = document.getElementById('system-detail-status');

            // 系统空间卡片点击事件
            systemSpaceCards.forEach(card => {
                card.addEventListener('click', function() {
                    const systemId = this.getAttribute('data-system-id');
                    const systemName = this.querySelector('h3').textContent;
                    const statusElement = this.querySelector('span.text-primary, span.text-warning, span.text-success');
                    const statusText = statusElement.textContent;
                    const statusClass = statusElement.className;

                    // 更新详情页面信息
                    systemDetailName.textContent = systemName;
                    systemDetailId.textContent = systemId;
                    systemDetailStatus.textContent = statusText;
                    systemDetailStatus.className = statusElement.className;

                    // 显示详情页面，隐藏列表页面
                    const systemSpaceListSection = document.querySelector('.bg-white.rounded-lg.shadow-card.p-4.mb-6');
                    systemSpaceListSection.classList.add('hidden');
                    systemSpaceDetail.classList.remove('hidden');

                    // 默认显示接口管理
                    showInterfaceManagement();
                });
            });

            // 返回列表按钮点击事件
            backToListBtn.addEventListener('click', function() {
                const systemSpaceListSection = document.querySelector('.bg-white.rounded-lg.shadow-card.p-4.mb-6');
                systemSpaceListSection.classList.remove('hidden');
                systemSpaceDetail.classList.add('hidden');
            });

            // 接口管理和模型管理切换
            const interfaceManagementBtn = document.getElementById('interface-management-btn');
            const modelManagementBtn = document.getElementById('model-management-btn');
            const interfaceManagementContent = document.getElementById('interface-management-content');
            const modelManagementContent = document.getElementById('model-management-content');

            interfaceManagementBtn.addEventListener('click', showInterfaceManagement);
            modelManagementBtn.addEventListener('click', showModelManagement);

            function showInterfaceManagement() {
                interfaceManagementBtn.className = 'whitespace-nowrap px-4 py-2 rounded-md bg-primary text-white font-medium flex items-center transition-all-300';
                modelManagementBtn.className = 'whitespace-nowrap px-4 py-2 rounded-md bg-white text-neutral-700 border border-neutral-200 font-medium flex items-center hover:bg-neutral-50 transition-all-300';
                interfaceManagementContent.classList.remove('hidden');
                modelManagementContent.classList.add('hidden');
            }

            function showModelManagement() {
                modelManagementBtn.className = 'whitespace-nowrap px-4 py-2 rounded-md bg-primary text-white font-medium flex items-center transition-all-300';
                interfaceManagementBtn.className = 'whitespace-nowrap px-4 py-2 rounded-md bg-white text-neutral-700 border border-neutral-200 font-medium flex items-center hover:bg-neutral-50 transition-all-300';
                modelManagementContent.classList.remove('hidden');
                interfaceManagementContent.classList.add('hidden');
            }
        });
    </script>
    <script>
        // 设计管理菜单展开/收起功能
        document.addEventListener('DOMContentLoaded', function() {
            const designMenuToggle = document.getElementById('design-menu-toggle');
            const designSubmenu = document.getElementById('design-submenu');
            const designMenuWrapper = document.querySelector('.design-menu-wrapper');
            
            if (designMenuToggle && designSubmenu) {
                designMenuToggle.addEventListener('click', function(e) {
                    e.stopPropagation();
                    this.querySelector('i').classList.toggle('rotate-90');
                    if (designSubmenu.classList.contains('hidden')) {
                        designSubmenu.classList.remove('hidden');
                        setTimeout(() => {
                            designSubmenu.classList.remove('opacity-0');
                        }, 10);
                    } else {
                        designSubmenu.classList.add('opacity-0');
                        setTimeout(() => {
                            designSubmenu.classList.add('hidden');
                        }, 300);
                    }
                });
                
                // 点击菜单项外部区域收起菜单
                document.addEventListener('click', function(e) {
                    if (designMenuWrapper && !designMenuWrapper.contains(e.target)) {
                        designSubmenu.classList.add('opacity-0');
                        setTimeout(() => {
                            designSubmenu.classList.add('hidden');
                        }, 300);
                        if (designMenuToggle.querySelector('i')) {
                            designMenuToggle.querySelector('i').classList.remove('rotate-90');
                        }
                    }
                });
            }
            
            // 测试管理菜单展开/收起功能
            const testMenuToggle = document.getElementById('test-menu-toggle');
            const testSubmenu = document.getElementById('test-submenu');
            const testMenuWrapper = document.querySelector('.test-menu-wrapper');
            
            if (testMenuToggle && testSubmenu) {
                testMenuToggle.addEventListener('click', function(e) {
                    e.stopPropagation();
                    this.querySelector('i').classList.toggle('rotate-90');
                    if (testSubmenu.classList.contains('hidden')) {
                        testSubmenu.classList.remove('hidden');
                        setTimeout(() => {
                            testSubmenu.classList.remove('opacity-0');
                        }, 10);
                    } else {
                        testSubmenu.classList.add('opacity-0');
                        setTimeout(() => {
                            testSubmenu.classList.add('hidden');
                        }, 300);
                    }
                });
                
                // 点击菜单项外部区域收起菜单
                document.addEventListener('click', function(e) {
                    if (testMenuWrapper && !testMenuWrapper.contains(e.target)) {
                        testSubmenu.classList.add('opacity-0');
                        setTimeout(() => {
                            testSubmenu.classList.add('hidden');
                        }, 300);
                        if (testMenuToggle.querySelector('i')) {
                            testMenuToggle.querySelector('i').classList.remove('rotate-90');
                        }
                    }
                });
            }
        });
    </script>
</body>
</html>